package jzh.cloud.goods.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "pineapple-user", consumerGroup = "pineapple_consumer_group")
public class MsgListener implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        System.out.println("Received message: " + s);
    }
}
